package hnlg.com.cn.systemmanage.quyumanage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import hnlg.com.cn.model.QuyuVo;
import hnlg.com.cn.systemmanage.quyumanage.mapper.QuyuMapper;

@Service("QuyuService")
@Transactional(value="txManager",rollbackFor=Exception.class)
public class QuyuServiceImpl implements IQuyuService{
	@Autowired QuyuMapper obj;

	@Override
	public boolean addQuyu(QuyuVo vo) throws Exception {
	    return obj.addQuyu(vo);
	}

	@Override
	public boolean deleteQuyu(String id) throws Exception {
		return obj.deleteQuyu(id);
	}

	@Override
	public boolean updateQuyu(QuyuVo vo) throws Exception {
		return obj.updateQuyu(vo);
	}

	@Override
	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public List<QuyuVo> queryquyu(QuyuVo vo) throws Exception {
		return obj.queryquyu(vo);
	}

	@Override
	public boolean deletebatch(String[] arr) throws Exception {
		return obj.deletebatch(arr);
	}
	

}
